﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Functions/Forms/Forms.master" AutoEventWireup="true" CodeBehind="LeaveForm.aspx.cs" Inherits="HRDexCapstoneProject.Functions.Forms.WebForm3" %>

<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainPage" runat="server">
>>>>>>> .r86
    <div>
    <table align="center" >
        <tr>
            <td colspan="4">
                <asp:ImageButton ID="btnEdit" runat="server" Height="49px" Width="52px"  />
                <asp:ImageButton ID="btnDelete" runat="server" Height="49px" Width="52px" />
            </td> 
        </tr>
         <tr>
            <td>
                Leave ID:</td>
            <td colspan="4">
                <asp:TextBox ID="txtLeaveID" runat="server" Width="445px"></asp:TextBox>
            </td>
           
         </tr>
         <tr>
            <td>
                Type of Leave:</td>
            <td colspan="4">
                <asp:DropDownList ID="ddlLeave" runat="server" Height="36px" 
                    Width="458px" DataSourceID="catLeave" DataTextField="CatLeaveName" 
                    DataValueField="CatLeaveID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="catLeave" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catLeave]"></asp:SqlDataSource>
            </td>
           
         </tr>
         <tr>
            <td style="width: 180px">
            
                Employee No:</td>
            <td colspan="4">
            
                <asp:TextBox ID="txtEmpNo" runat="server" Width="450px"></asp:TextBox>
             </td>
        </tr>
        <tr>
            <td style="width: 180px; height: 26px;">
            
                Name:</td>
            <td colspan="4" style="height: 26px">
            
                <asp:TextBox ID="txtEmpName" runat="server" Width="450px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 180px">
            
                Position</td>
            <td colspan="4">
            
                <asp:DropDownList ID="ddlPosition" runat="server" DataSourceID="Position" 
                    DataTextField="catPositionsName" DataValueField="catPositionsID" Height="16px" 
                    Width="456px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="Position" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catPositions]"></asp:SqlDataSource>
            </td>
        </tr>
         <tr>
            <td style="width: 180px">
            
                Department</td>
            <td colspan="4">
            
                <asp:DropDownList ID="ddlDept" runat="server" DataSourceID="Department" 
                    DataTextField="DepartmentName" DataValueField="DeptID" Height="27px" 
                    Width="456px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="Department" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT [DeptID], [DepartmentName] FROM [catDepartment]">
                </asp:SqlDataSource>
                <asp:DropDownList ID="ddlCol" runat="server" DataSourceID="college" 
                    DataTextField="CollegeName" DataValueField="CollegeID" Height="40px" 
                    Width="453px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="college" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
             </td>
        </tr>
         <tr>
            <td colspan="5">
            
                Date of Absent</td>
        </tr>
         <tr>
            <td>
                From</td>
            <td>
                <eo:DatePicker ID="dpFrom" runat="server" DisabledDates="" SelectedDates="">
                </eo:DatePicker>
                <asp:TextBox ID="txtFrom" runat="server" Width="142px"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
            <td>
                Time</td>
            <td>
                <asp:DropDownList ID="ddl0Hour" runat="server">
                <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddl0Min" runat="server">
                <asp:ListItem Value="00">00</asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                    <asp:ListItem Value="60"></asp:ListItem>
                </asp:DropDownList>
            </td>
         </tr>
        <tr>
            <td>
                To</td>
            <td>
                <eo:DatePicker ID="dpTo" runat="server" DisabledDates="" SelectedDates="">
                </eo:DatePicker>
                <asp:TextBox ID="txtTo" runat="server" Width="142px"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
            <td>
                Hours</td>
            <td>
                <asp:DropDownList ID="ddl1Hour" runat="server">
                <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem Value="12"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddl1Min" runat="server">
                <asp:ListItem Value="00">00</asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                    <asp:ListItem Value="60"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 180px">
            
                &nbsp;</td>
            <td colspan="4">
            
                Total:
                <asp:TextBox ID="txtTotalDays" runat="server"></asp:TextBox>
&nbsp;<asp:DropDownList ID="ddlDaysMonthsYear" runat="server" DataSourceID="daysmonthsyear" 
                    DataTextField="Name" DataValueField="dmyID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="daysmonthsyear" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catDaysMonthsYear]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                Reason<br />
            </td>
            <td colspan="4">
                <asp:TextBox ID="txtReason" runat="server" TextMode="MultiLine" Width="453px"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td>
                Address During Learn<br />
             </td>
            <td colspan="4">
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="453px"></asp:TextBox>
            </td>
            </tr>
        <tr>
            <td colspan="5" style="text-align: center">
                <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
                <asp:Button ID="btnClear" runat="server" Text="Clear" />
                <asp:Button ID="btnClose" runat="server" Text="Close" />
            </td>
        </tr>
    </table>
        <table id="approval" align="right">
    <tr>
        <td style="height: 59px">Chairperson/Supervisor</td>
        <td style="height: 59px">
            <asp:DropDownList ID="ddlApproval1" runat="server" Height="16px" Width="109px" 
                DataSourceID="approvalHead" DataTextField="Status" 
                DataValueField="ApprovalIDHead">
            </asp:DropDownList>
            <asp:SqlDataSource ID="approvalHead" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApprovalHead]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Dean/Director</td>
        <td>
            <asp:DropDownList ID="ddlApproval2" runat="server" Height="16px" Width="109px" 
                DataSourceID="approvalCollege" DataTextField="Status" 
                DataValueField="ApprovalIDDean">
            </asp:DropDownList>
            <asp:SqlDataSource ID="approvalCollege" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApprovalDean]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Human Resource Director</td>
        <td>
            <asp:DropDownList ID="ddlApproval3" runat="server" Height="16px" Width="109px" 
                DataSourceID="hr" DataTextField="ApprovalName" 
                DataValueField="ApprovalIDHR">
            </asp:DropDownList>
            <asp:SqlDataSource ID="hr" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApproval]"></asp:SqlDataSource>
        </td>
    </tr>     
    </table>
</div>
    <br />
    <br />
    <br />
            
                <asp:TextBox ID="txtTest1" runat="server" Width="306px" 
        Height="26px"></asp:TextBox>
            
                <asp:TextBox ID="txtTest2" runat="server" Width="306px" 
        Height="26px"></asp:TextBox>
            
                <asp:TextBox ID="txtTest3" runat="server" Width="306px" 
        Height="26px"></asp:TextBox>
            </asp:Content>
